package cn.com.cifi.mars.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import cn.com.cifi.mars.entity.ApprovalLog;
import cn.com.cifi.mars.mapper.mars.ApprovalLogMapper;
import cn.com.cifi.mars.service.ApprovalLogService;

/**
 * <p>
 * 审批日志表 服务实现类
 * </p>
 *
 * @author plx
 * @since 2020-03-25
 */
@Service
public class ApprovalLogServiceImpl extends ServiceImpl<ApprovalLogMapper, ApprovalLog> implements ApprovalLogService {

	@Autowired
	private ApprovalLogMapper approvalLogMapper;
	
	@Override
	public ApprovalLog selectOneByBillId(String billId) {
		return approvalLogMapper.selectOneByBillId(billId);
	}

	@Override
	public void add(ApprovalLog approvalLog) {
		approvalLogMapper.insertSelective(approvalLog);
	}

}
